home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / GRAPH_FO / (GRAPH / GRAPH_HE / GRVERTEX.H < prev   
Text File  |  1991-02-15  |  916b  |  37 lines

  1. /******************************************************************************
  2.     GrVertex.h
  3.         Graph methods in Object C.
  4.         This implements the GrVertex class.
  5.  
  6.     SUPERCLASS = GrNode
  7.  
  8.     Copyright ⌐ 1991 Maarten Meijer. All rights reserved.
  9.         CIS 100016,1764; FidoNet 2:512/114
  10. *******************************************************************************/
  11.  
  12. #define    _H_GrVertex
  13.  
  14. /* includes */
  15. #include "GrNode.h"
  16.  
  17. /* class definition */
  18. struct GrVertex : GrNode {
  19.     Point        center;
  20.  
  21.     long        blokno;        /* for debugging purposes */
  22.  
  23.     void        IGraphNode(void);                /* OVERRIDE */
  24.     /* Drawing methods */
  25.     void        _Draw(void);                    /* OVERRIDE */
  26.     void        Draw(void);                        /* OVERRIDE */
  27.  
  28.     /* Location methods */
  29.     void        SetRegion(void);                /* OVERRIDE */
  30.     void        SetCenter(Point thePoint);
  31.     Point        GetCenter(void);
  32.  
  33.     /* Updating methods */
  34.     void        GetRect(Rect *r);                /* OVERRIDE */
  35.     Boolean        NodeInRect(Rect *r);            /* OVERRIDE */
  36.     };
  37.